<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>超链接校验</title>
    <script>
        function f1(){
            let flag = confirm("是否确认?");
            console.log(flag);
        }
    </script>
</head>
<body>
<a href="javascript:;" onclick="f1()">确认框</a>
<a href="29-表单校验.html" onclick="return confirm('是否确认?')">删除</a>
</body>
</html>